package com.ljl.ningwei.common.page;

import lombok.Data;

import java.util.List;

/**
 * @author 吕佳乐
 * @version 1.0
 * @date 2025-03-17 20:54
 */
@Data
public class PageInfoByApp<T> {

    /**
     * 是否结束
     */
    private Boolean isEnd;


    /**
     * 总记录数
     */
    private List<T> list;

    public PageInfoByApp(Boolean isEnd, List<T> list) {

        this.isEnd = isEnd;
        this.list = list;
    }

    public static <T> PageInfoByApp<T> of(Boolean isEnd, List<T> list) {
        return new PageInfoByApp(isEnd, list);
    }

}
